#include <iostream>
#include <fstream>
#include <string>

using namespace std;

int main() {
	char buf [30] = {'a', 'b', '\n', 'c', 'd', '\r', 'e',  0};
	string s(buf);

	cout << "s = " << s << endl;
}
